/*
 * @Author: xiaosihan
 * @Date: 2021-05-09 23:35:21
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2021-05-29 21:27:05
 */

import { WebGLRenderer, WebGLRenderTarget } from "three";
import { EffectComposer } from "three/examples/jsm/postprocessing/EffectComposer.js";
import { Pass } from "three/examples/jsm/postprocessing/Pass.js";


export default class Composer extends EffectComposer {

	constructor(renderer: WebGLRenderer, renderTarget?: WebGLRenderTarget) {
		super(renderer, renderTarget);

	}

	addPass(pass: Pass): void {
		if (!this.passes.includes(pass)) {
			super.addPass(pass);
		}
	}

}
